import 'dart:convert';

import 'package:enterprise_v6_app/app/data/common/choice_bean.dart';
import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/identification_config_entity.g.dart';
export 'package:enterprise_v6_app/generated/json/identification_config_entity.g.dart';

///辨识结果
@JsonSerializable()
class IdentificationConfigEntity extends ChoiceBean{
  IdentificationConfigEntity();

  factory IdentificationConfigEntity.fromJson(Map<String, dynamic> json) =>
      $IdentificationConfigEntityFromJson(json);

  ///	企业编码
  String? companyCode = '';

  ///	创建人
  String? createBy = '';

  ///	创建时间
  String? createDate = '';

  ///	主键ID
  String? id = '';

  ///	辨识结果
  String? identification = '';

  ///	修改人
  String? updateBy = '';

  ///	修改时间
  String? updateDate = '';

  ///	作业类型ID集合
  List<String>? workTypeIds = [];

  ///	作业8大类型名称
  String? workTypeName = '';

  /// 是否选中
  bool isChecked = false;

  Map<String, dynamic> toJson() => $IdentificationConfigEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }

  @override
  String getId() {
    return id!;
  }

  @override
  bool getIsChecked() {
    return isChecked;
  }

  @override
  String getShowName() {
    return identification!;
  }

  @override
  setIsChecked(bool isChecked) {
    this.isChecked = isChecked;
  }
}
